home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / Enforce / Scripting / Script infos next >
Text File  |  2000-05-08  |  3KB  |  95 lines

  1.  
  2. There are some of mails betwen me and FiDo, translated to english for
  3. everyone, who wants modify, create etc. new levels ;)
  4. ---------------------------------------------------------------------
  5.  
  6.  
  7. BTW: are you noticed that Enforce loading samples from disk on
  8. the RUN? If you don't like that, let's search on beginning of pkf
  9. file for all WAV files and into Script write before PlayMap() commands
  10. CacheObject(sound/xxxx.wav)
  11. for all samples and these will be loaded before game. Is not it beautifull? ;)
  12. If you write CacheObject("maps/pokus.map") then it also load that before
  13. start and PlayMap("maps/pokus.map") will be executed immediatelly...
  14.  
  15.  
  16. [hicolor rendering]
  17. Textures are still 8bit only. but these are paletized. This means for Enforce
  18. that is can have any nunber of paletes and free references texture->palete.
  19. Render is hicolor, when shading tables are hicolor ones. In result, there
  20. will be "only" 2560 colors (10 paletes) but it get's thousads shades of
  21. each during shading textures.
  22.  
  23.  
  24. ["EnforceData/" directory]
  25.  
  26. > weird switch game = Enforce
  27.  
  28. Exactly ;))))  Describing all Things (buttons, lights, elevators...) is into
  29. script and can be created new one, without changes to engine!
  30.  
  31. [p96 support]
  32.  
  33. > bug describing
  34.  
  35. I allocate bitmap AllocBitMap(), as friend bitmap i get that, what already
  36. have the already OPENED screen, then i alocate memory for RastPort, followed
  37. allocated BitMap into RastPort, do InitRastPort() and then ClearScreen
  38. and crash come...  On AA and CGX this works right...
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. Atached script - its sensitive to syntax, write same as existing code. For
  46. command LET respect spaces betwen all parts and write alwyas only simple,
  47. 2/3 operands instructions
  48. let a = b
  49. let a = b + c
  50. and instead of
  51. let a = - a
  52. write
  53. let a = 0 - a
  54.  
  55. Interesting spot to modification its function newframe(), what is called
  56. each once for every frame - there its writen light animations.
  57.  
  58. Next tip:
  59. You can modify any Thing
  60.  
  61. for example you are create a global variable (somewhere at beginning of source)
  62.  
  63. declare string nextmap
  64. let nextmap = "maps/pokus.map"
  65.  
  66. and into fci main()
  67. instead of first PlayMap() let's be
  68. PlayMap("maps/base.map")
  69.  
  70. and instead of second write here
  71. PlayMap(nextmap)
  72.  
  73. and for example into class button, function exception()
  74.  
  75. if event & EV_TOUCH
  76.      let nextmap = "maps/base.map"
  77. endif
  78.  
  79. and into class portalsource, function exception()
  80.  
  81. if event & EV_TOUCH
  82.      QuitMap()
  83. endif
  84.  
  85. And then after you go to teleport, you get into another map, in case if
  86. you press anything already...
  87.  
  88. For modify only one button you need also souce for map and then rename
  89. any Thing at, for example button666 and into script for it you write
  90. a special program...
  91.  
  92. Simply let's play as you want ;))))
  93.  
  94. Don't forget create a directory EnforceData and in that place copy
  95. it, then it will be executed instead of standard one...